﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Admin_Staff_ListStaff : AdminBasePage
{
    BLLStaffManagement bllStaff = new BLLStaffManagement();

    protected void Page_Load(object sender, EventArgs e)
    {
        if (LoginedStaff.tblRole.Role != "Admin")
            Response.Redirect("~/Admin/Index.aspx");

        if (!IsPostBack)
        {
            bindStaff();
        }
    }

    private void bindStaff()
    {
        gvStaff.DataSource= bllStaff.ListStaff();
        gvStaff.DataBind();

       
    }
}